package com.mofang.activity.user;

import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.mofang.R;
import com.mofang.activity.BaseActivity;
import com.mofang.activity.BaseTitleViewActiviey;

public class MyCommissionActivity extends BaseTitleViewActiviey implements
		OnClickListener {
	private ImageView iv_user_commission_user_face;

	private TextView txt_user_commission_user_name;
	private TextView txt_user_commission_user_id;
	private TextView txt_user_commission_my_commission;
	private TextView txt_user_commission_recommended_custome;
	private TextView txt_user_commission_to_be_traded;
	private TextView txt_user_commission_purchase_intention;
	private TextView txt_user_commission_my_commission_count;
	private LinearLayout commission_subsidiary;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		setContentView(R.layout.activity_my_commission);
		super.onCreate(savedInstanceState);
		setNavigationTitle("我的佣金");
		setNavigationLeftBtnImage(R.drawable.return_arrow);

	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.my_commission, menu);
		return true;
	}

	@Override
	protected void initView() {
		super.initView();
		iv_user_commission_user_face = (ImageView) findViewById(R.id.iv_user_commission_user_face);
		txt_user_commission_user_name = (TextView) findViewById(R.id.txt_user_commission_user_name);
		txt_user_commission_user_id = (TextView) findViewById(R.id.txt_user_commission_user_id);
		txt_user_commission_my_commission = (TextView) findViewById(R.id.txt_user_commission_my_commission);
		txt_user_commission_recommended_custome = (TextView) findViewById(R.id.txt_user_commission_recommended_custome);
		txt_user_commission_to_be_traded = (TextView) findViewById(R.id.txt_user_commission_to_be_traded);
		txt_user_commission_purchase_intention = (TextView) findViewById(R.id.txt_user_commission_purchase_intention);
		txt_user_commission_my_commission_count = (TextView) findViewById(R.id.txt_user_commission_my_commission_count);

		commission_subsidiary = (LinearLayout) findViewById(R.id.commission_subsidiary);
		commission_subsidiary.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		Intent intent = null;
		switch (v.getId()) {
		case R.id.commission_subsidiary:
			 intent=new
			 Intent(MyCommissionActivity.this,MyCommissionDetailActivity.class);
			startActivity(intent);
			break;

		default:
			break;
		}
	}

}
